package hutech.ksv.view;

import hutech.ksv.entity.ChiTietPNXQAEntity;
import hutech.ksv.entity.PhieuNhanXetQAEntity;
import hutech.ksv.service.PhieuNhanXetQAService;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("session")
public class PhieuNhanXetQAManageBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	PhieuNhanXetQAService pnxQuanAnService;
	
	private int maPNXQA;
	private int danhGiaQA;
	private String tenTKSV;
	private int maQA;
	private String noiDungNhanXetQA;

	public int getMaPNXQA() {
		return maPNXQA;
	}

	public void setMaPNXQA(int maPNXQA) {
		this.maPNXQA = maPNXQA;
	}

	public int getDanhGiaQA() {
		return danhGiaQA;
	}

	public void setDanhGiaQA(int danhGiaQA) {
		this.danhGiaQA = danhGiaQA;
	}

	public String getTenTKSV() {
		return tenTKSV;
	}

	public void setTenTKSV(String tenTKSV) {
		this.tenTKSV = tenTKSV;
	}

	public int getMaQA() {
		return maQA;
	}

	public void setMaQA(int maQA) {
		this.maQA = maQA;
	}

	public String getNoiDungNhanXetQA() {
		return noiDungNhanXetQA;
	}

	public void setNoiDungNhanXetQA(String noiDungNhanXetQA) {
		this.noiDungNhanXetQA = noiDungNhanXetQA;
	}

	// Load phieu nhan xet
	public List<PhieuNhanXetQAEntity> loadNhanXetQA() {
		return pnxQuanAnService.loadNhanXetQA();
	}

	// Load chi tiet phieu nhan xet quan an
	public List<ChiTietPNXQAEntity> loadCTNhanXetQA() {
		return pnxQuanAnService.loadCTNhanXetQA();
	}
}
